import App from './App'
// VUEX
import store from './store'
// 多语言
import i18n from '@/locale/index.js'
// 组件库
import uView from '@/uni_modules/uview-ui'
// 全局方法
import globalMethods from './global/index'
// 全局混入
import mixin from './mixins'
// 导航栏
import Navbar from './components/Navbar/Navbar.vue'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
// 注册全局方法
Vue.use(globalMethods)
Vue.use(uView)
Vue.component(Navbar)
Vue.mixin(mixin)
uni.$u.config.unit = 'rpx'
Vue.prototype.$store = store
App.mpType = 'app'
const app = new Vue({
	store,
	i18n,
	...App
})
require('utils/request.js')(app)
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif